package com.ctshk.rpc.order.airexpress.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 机场快线订单旅客信息
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-02-23
 */
@Data
@ApiModel(value="AirportExpressOrderTouristReq对象", description="机场快线订单旅客信息")
public class AirportExpressOrderTouristReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "旅客类型（1：成人 2：小童）")
    private Integer touristType;

    @ApiModelProperty(value = "旅客姓")
    private String surname;

    @ApiModelProperty(value = "旅客名")
    private String name;

    @ApiModelProperty(value = "旅客姓名")
    private String touristName;

    @NotNull(message = "旅客性别不能为空，1：男,2:女")
    @Max(value = 1,message = "旅客性别值域，1：男,2:女")
    @Min(value = 0,message = "旅客性别值域，1：男,2:女")
    @ApiModelProperty(value = "性别")
    private Integer gender;

    @NotNull(message = "旅客出生日期不能为空")
    @ApiModelProperty(value = "出生日期")
    private LocalDate birthday;

    @ApiModelProperty(value = "联系人手机")
    private String contactMobile;

    @ApiModelProperty(value = "联系人手机区号")
    private String contactMobileAreaCode;

    @ApiModelProperty(value = "联系人手机区号id")
    private Long contactMobileAreaCodeId;

}
